import { query } from '~/apis/types/query'
import System from '~/utils/System'

export default class ApiCron {
    static list(query?: query) {
        return System.http.get(
            {
                url: 'cron/list',
                method: 'post'
            },
            { ...query }
        )
    }

    static save(param: any) {
        return System.http.get(
            {
                url: 'cron/save',
                method: 'post'
            },
            param
        )
    }

    static remove(id: string) {
        return System.http.get(
            {
                url: 'cron/remove',
                method: 'post'
            },
            { id }
        )
    }
}
